﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            Cat cat = new Cat("猫");
            cat.Eat();
            dong(cat);
            Console.WriteLine("--------------------------");
            Dog dog = new Dog("狗");
            dog.Eat();
            dong1(dog);
            Console.WriteLine("--------------------------");
            duck duck = new duck("鸭子");
            duck.Eat();
            dong2(duck);
            Console.WriteLine("--------------------------");
            Monkey monkey = new Monkey("猴子");
            monkey.Eat();
            dong3(monkey);
            dong4(monkey);
        }
        public static void dong(climb cat)
        {
            cat.climb();
        }
        public static void dong1(swin dog)
        {
            dog.swin();
        }
        public static void dong2(swin duck)
        {
            duck.swin();
        }
        public static void dong3(swin monkey)
        {
            monkey.swin();
        }
        public static void dong4(climb monkey)
        {
            monkey.climb();
        }
    }
}
